import Vue from 'vue'
const index = r => require.ensure([], () => r(require('../components/index')), 'index')
const monitoringDetails = r => require.ensure([], () => r(require('../components/monitoringDetails')), 'monitordetails')
const entranceApp = r => require.ensure([], () => r(require('../components/entranceApp')), 'entranceapp')
const noticeList = r => require.ensure([], () => r(require('../components/notice/noticelist')), 'noticelist')
const noticeDetails = r => require.ensure([], () => r(require('../components/notice/noticedetails')), 'noticelist')
const powerPlant = r => require.ensure([], () => r(require('../components/station/powerPlant')), 'powerplant')
const powerLists = r => require.ensure([], () => r(require('../components/station/powerLists')), 'powerlists')
const powerDialog = r => require.ensure([], () => r(require('../components/station/powerDialog')), 'powerdialog')
    //信息发送模块
const infoAudit = r => require.ensure([], () => r(require('../components/infosend/InfoAudit')), 'infosend')
const infoDetail = r => require.ensure([], () => r(require('../components/infosend/InfoDetail')), 'infosend')
const infoNewAdd = r => require.ensure([], () => r(require('../components/infosend/InfoNewAdd')), 'infosend')
const cutOffWaterAudit = r => require.ensure([], () => r(require('../components/infosend/CutOffWaterAudit')), 'infosend')
    //监测信息
const monitorInformation = r => require.ensure([], () => r(require('../components/monitorInformation')), 'monitorInformation')
const pdf = r => require.ensure([], () => r(require('../components/pdf.vue')), 'pdf')

//文件预览
// import PDF from './pdf'
// var $vm
export default {
    routes: [
        // 入口-应用
        {
            path: '/',
            name: '水电站',//应用
            component: index
            //entranceApp
        },
        {
            path: '/index',
            name: '水电站',
            component: index
        },
        // 信息发送模块路由
        {
            path: '/infoaudit',
            name: '信息发送',
            component: infoAudit
        },
        {
            path: '/infodetail',
            name: '申请详情',
            component: infoDetail
        },
        {
            path: '/infonewadd',
            name: '新增申请',
            component: infoNewAdd
        },
        {
            path: '/cutoffwateraudit',
            name: '水电站停水审核',
            component: cutOffWaterAudit
        },
        // 监测详情
        {
            path: '/monitordetails',
            name: '监测详情',
            component: monitoringDetails
        },
        // 通知公告-列表
        {
            path: '/noticelist',
            name: '通知公告',
            component: noticeList
        },
        // 通知公告-内容
        {
            path: '/noticedetails',
            name: '通知公告详情',
            component: noticeDetails
        },
        // 电站信息
        {
            path: '/powerplant',
            name: '电站信息',
            component: powerPlant
        },
        {
            path: '/powerlists',
            name: '电站列表',
            component: powerLists
        },
        {
            path: '/powerdialog',
            name: '电站详情',
            component: powerDialog
        },
        //监测信息
        {
            path: '/monitorInformation',
            name: '监测信息',
            component: monitorInformation
        },
        {
            path: '/pdf',
            name: 'pdf',
            component:pdf
          }
    ]

}